import axios from "/src/utils/http.js";

export const getBedByPageAPI = (params) => {
    return axios({
        url: "bed/page",
        method: "get",
        params,
    });
};

export const addBedAPI = (data) => {
    return axios({
        url: "bed/add",
        method: "post",
        data,
    });
};

export const getelderAPI = () => {
    return axios({
        url: "elder/querybybed",
        method: "get",
    });
};

export const bindelderAPI = (params) => {
    return axios({
        url: "elder/modbed",
        method: "post",
        params,
    });
};

export const modbedstatusAPI = (params) => {
    return axios({
        url: "bed/modstatus",
        method: "post",
        params,
    });
};

export const getelderBybedNumberAPI = (params) => {
    return axios({
        url: "elder/querybybednumber",
        method: "get",
        params,
    });
};
export const deletebedAPI = (params) => {
    return axios({
        url: "bed/deletebed",
        method: "post",
        params,
    });
};